package com.hanbang.taitaigou.model;

import java.io.Serializable;

/**
 * 2级菜单明细
 * Created by fanxin on 2016/3/16.
 */
public class GoodListData implements Serializable{

    /**
     * id
     */
    private int id;

    private int sort_id;

    /**
     * 商家ID
     */
    private int store_id;
    /**
     * 商品名称
     */
    private String gname;
    /**
     * 品牌
     */
    private String subtitle;
    /**
     * 图片路径
     */
    private String img_url;
    /**
     * 单位名称
     */
    private String unit;
    /**
     * 规格
     */
    private int pknum;
    /**
     * 市场价
     */
    private double original_price;
    /**
     * 零售价
     */
    private double sell_price;
    /**
     * 商品剩余数量
     */
    private double quantity;
    /**
     * 选择的商品的数目
     */
    private int number;



    private int type;

    private int goods_id;

    private int dept_id;

    public int getDept_id() {
        return dept_id;
    }

    public void setDept_id(int dept_id) {
        this.dept_id = dept_id;
    }

    public int getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(int goods_id) {
        this.goods_id = goods_id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public double getOriginal_price() {
        return original_price;
    }

    public void setOriginal_price(double original_price) {
        this.original_price = original_price;
    }

    public double getSell_price() {
        return sell_price;
    }

    public void setSell_price(double sell_price) {
        this.sell_price = sell_price;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getStore_id() {
        return store_id;
    }

    public void setStore_id(int store_id) {
        this.store_id = store_id;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSort_id() {
        return sort_id;
    }

    public void setSort_id(int sort_id) {
        this.sort_id = sort_id;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public String getSubtitle() {
        return subtitle;
    }

    public void setSubtitle(String subtitle) {
        this.subtitle = subtitle;
    }

    public String getImg_url() {
        return img_url;
    }

    public void setImg_url(String img_url) {
        this.img_url = img_url;
    }

    public String getUnit() {
        return unit;
    }


    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getPknum() {
        return pknum;
    }

    public void setPknum(int pknum) {
        this.pknum = pknum;
    }



    public double getQuantity() {
        return quantity;
    }

    public void setQuantity(double quantity) {
        this.quantity = quantity;
    }

    public DbGwcData getDbGwcData() {
        return new DbGwcData(id, original_price, sell_price, number, gname, img_url, (int) quantity);
    }


    @Override
    public String toString() {
        return "GoodListData{" +
                "id=" + id +
                ", sort_id=" + sort_id +
                ", gname='" + gname + '\'' +
                ", subtitle='" + subtitle + '\'' +
                ", img_url='" + img_url + '\'' +
                ", unit='" + unit + '\'' +
                ", pknum=" + pknum +
                ", market_price=" + original_price +
                ", retail_price=" + sell_price +
                ", quantity=" + quantity +
                ", number=" + number +
                '}';
    }
}
